package entity.common;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 评价表
 * </p>
 *
 * @author admin
 * @since 2020-02-17
 */
@TableName("t_appraise_info")
@Data
public class AppraiseInfo implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 星级评价
     */
    @TableField("count")
    private Integer count;

    /**
     * 评价内容 最多20字
     */
    @TableField("content")
    private String content;

    /**
     * 菜品id
     */
    @TableField("food_id")
    private Integer foodId;

    @TableField("create_time")
    private String createTime;

    @TableField("update_time")
    private String updateTime;

}
